# -*- mode: python -*-

import os

Import( "env" )

env = env.Copy()
env.Append( CPPPATH=[ ".", os.path.realpath( "include" ) ] )

Export( "env" )
subdirs = [ "src" ]
for s in subdirs:
    SConscript( s + "/SConscript" )


env.Append( LIBS=[ "mc930", "mc930_proj2" ],
            LIBPATH=[ os.path.realpath( "src" ) ] )

Export( "env" )
#subdirs = [ "tests", "gui" ]
subdirs = [ "tests" ]
for s in subdirs:
    SConscript( s + "/SConscript" )

srcs = [
    "project-02.c",
    ]

env.Program( srcs )

env.Program( "generate-checker.c" )

if env[ "sdl" ] == 1:
    env.Program( "project-02-sdl.c" )
